<?php
namespace app\model;

use think\Model;

class DeptModel extends Model
{
    protected $table = 'dept';
    protected $resultSetType = 'collection';


    public function getDeptList(){
        $sql = 'SELECT '.$fields.' FROM `user` WHERE companyid='.$companyid.' AND deptid='.$deptid.' LIMIT '.$page.','.$pagesize;
        $result = DB::query($sql);
    }

    
}
